package lp.xian.materials.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import lp.xian.materials.mapper.WarehousingRequisitionTableMapper;
import lp.xian.materials.domain.WarehousingRequisitionTable;
import lp.xian.materials.service.IWarehousingRequisitionTableService;

/**
 * 入库列表Service业务层处理
 *
 * @author ruoyi
 * @date 2023-08-10
 */
@Service
public class WarehousingRequisitionTableServiceImpl implements IWarehousingRequisitionTableService
{
    @Autowired
    private WarehousingRequisitionTableMapper warehousingRequisitionTableMapper;

    /**
     * 查询入库列表
     *
     * @param warehousingRequisitionTableId 入库列表主键
     * @return 入库列表
     */
    @Override
    public WarehousingRequisitionTable selectWarehousingRequisitionTableByWarehousingRequisitionTableId(Integer warehousingRequisitionTableId)
    {
        return warehousingRequisitionTableMapper.selectWarehousingRequisitionTableByWarehousingRequisitionTableId(warehousingRequisitionTableId);
    }

    /**
     * 查询入库列表列表
     *
     * @param warehousingRequisitionTable 入库列表
     * @return 入库列表
     */
    @Override
    public List<WarehousingRequisitionTable> selectWarehousingRequisitionTableList(WarehousingRequisitionTable warehousingRequisitionTable)
    {
        return warehousingRequisitionTableMapper.selectWarehousingRequisitionTableList(warehousingRequisitionTable);
    }

    /**
     * 新增入库列表
     *
     * @param warehousingRequisitionTable 入库列表
     * @return 结果
     */
    @Override
    public int insertWarehousingRequisitionTable(WarehousingRequisitionTable warehousingRequisitionTable)
    {
        return warehousingRequisitionTableMapper.insertWarehousingRequisitionTable(warehousingRequisitionTable);
    }

    /**
     * 修改入库列表
     *
     * @param warehousingRequisitionTable 入库列表
     * @return 结果
     */
    @Override
    public int updateWarehousingRequisitionTable(WarehousingRequisitionTable warehousingRequisitionTable)
    {
        return warehousingRequisitionTableMapper.updateWarehousingRequisitionTable(warehousingRequisitionTable);
    }

    /**
     * 批量删除入库列表
     *
     * @param warehousingRequisitionTableIds 需要删除的入库列表主键
     * @return 结果
     */
    @Override
    public int deleteWarehousingRequisitionTableByWarehousingRequisitionTableIds(Integer[] warehousingRequisitionTableIds)
    {
        return warehousingRequisitionTableMapper.deleteWarehousingRequisitionTableByWarehousingRequisitionTableIds(warehousingRequisitionTableIds);
    }

    /**
     * 删除入库列表信息
     *
     * @param warehousingRequisitionTableId 入库列表主键
     * @return 结果
     */
    @Override
    public int deleteWarehousingRequisitionTableByWarehousingRequisitionTableId(Integer warehousingRequisitionTableId)
    {
        return warehousingRequisitionTableMapper.deleteWarehousingRequisitionTableByWarehousingRequisitionTableId(warehousingRequisitionTableId);
    }
}
